//代码测试
//小狗实例化
public class Test{

    public void setAge(){
        int age =0;
        age +=7;
        System.out.println("小狗的年龄是："+age);
    }

    public static void main(String[] args){
        Test test=new Test();
        test.setAge();
    }
}